const { accountAddApi, accountDeleteApi, accountUpdateApi, accountGetApi, accountFilterApi, accountGetAllApi } = require('./controller/accountController');
const { categoryAddApi, categoryDeleteApi, categoryGetApi } = require('./controller/categoryController');

const routes = [
    {
        path: '/category/get',
        method: 'get',
        handle: categoryGetApi
    }, {
        path: '/category/add',
        method: 'post',
        handle: categoryAddApi
    }, {
        path: '/category/delete',
        method: 'post',
        handle: categoryDeleteApi
    }, {
        path: '/account/add',
        method: 'post',
        handle: accountAddApi
    }, {
        path: '/account/delete',
        method: 'post',
        handle: accountDeleteApi
    }, {
        path: '/account/update',
        method: 'post',
        handle: accountUpdateApi
    }, {
        path: '/account/get',
        method: 'get',
        handle: accountGetApi 
    }, {
        path: '/account/filter',
        method: 'post',
        handle: accountFilterApi
    }, {
        path: '/account/getall',
        method: 'get',
        handle: accountGetAllApi
    }
]

module.exports = routes
